package com.studyroom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;

@Data
@TableName("feedbacks")
public class Feedback {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private String content;  // 反馈内容
    
    private String reply;    // 管理员回复内容
    
    private Integer status;  // 0: 未处理, 1: 已处理
    private String images;

    @TableField(fill = FieldFill.INSERT)
    private String createdAt;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedAt;
    
    @TableField(exist = false)
    private String username;  // 用户名，不映射到数据库
} 